package com.jsbs.iam.ident.service;

import com.github.pagehelper.PageInfo;
import com.jsbs.iam.ident.dto.IamMultiDeviceStrategyPageDto;
import com.jsbs.iam.ident.entity.IamMultideviceStrategy;
import com.jsbs.iam.ident.vo.IamMultideviceStrategyVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhouxiangyang
 * @className IamMultiDeviceStrategyService
 * @date 2023/1/2 21:52
 * @description:
 */

public interface IamMultiDeviceStrategyService {


    PageInfo<IamMultideviceStrategyVo> getIamMultiDeviceStrategyPage(IamMultiDeviceStrategyPageDto pageDto,
                                                                     String companyCode);

    /**
     * 新增登录策略
     * @return
     */
    int saveIamMultiDeviceStrategy (IamMultideviceStrategy iamMultideviceStrategy) throws Exception;

    /**
     * 异常登录策略更新
     * @param iamMultideviceStrategy
     * @return
     */
    int updateIamMultiDeviceStrategy (IamMultideviceStrategy iamMultideviceStrategy) throws Exception;

    /**
     * 异常登录策略删除
     * @param list
     * @return
     */
    int deleteIamMultiDeviceStrategy (List<String> list,String companyCode);
}
